package com.danciyixue.boot.dcyx.model.form;

import java.io.Serial;
import java.io.Serializable;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
import java.time.LocalDateTime;
import com.fasterxml.jackson.annotation.JsonFormat;
import jakarta.validation.constraints.*;

/**
 * 单元信息表单对象
 *
 * @author youlaitech
 * @since 2025-06-15 16:34
 */
@Getter
@Setter
@Schema(description = "单元信息表单对象")
public class UnitsForm implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @Schema(description = "单元ID")
    private Long id;

    @Schema(description = "系列ID")
    private Long seriesId;

    @Schema(description = "教材ID")
    @NotNull(message = "教材ID不能为空")
    private Long programId;

    @Schema(description = "教材名称冗余")
    @Size(max=128, message="教材名称冗余长度不能超过128个字符")
    private String programName;

    @Schema(description = "单元名")
    @NotBlank(message = "单元名不能为空")
    @Size(max=128, message="单元名长度不能超过128个字符")
    private String name;

    @Schema(description = "英文名称")
    @Size(max=128, message="英文名称长度不能超过128个字符")
    private String nameEnUs;

    @Schema(description = "简体中文名")
    @NotBlank(message = "简体中文名不能为空")
    @Size(max=128, message="简体中文名长度不能超过128个字符")
    private String nameZhCn;

    @Schema(description = "繁体中文名")
    @Size(max=128, message="繁体中文名长度不能超过128个字符")
    private String nameZhBig;

    @Schema(description = "单元排序索引")
    private Integer unitIndex;

    @Schema(description = "创建用户")
    private Long createUser;

    @Schema(description = "更新用户")
    private Long updateUser;

    @Schema(description = "状态")
    @NotNull(message = "状态不能为空")
    private Integer status;

    @Schema(description = "总单词数量")
    @NotNull(message = "总单词数量不能为空")
    private Integer totalNum;


}
